﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace DetectWebApi.Models.DamageBuilding
{
    /// <summary>
    /// 建筑文档
    /// </summary>
    public class BuildingDocument
    {
        [BsonElement("BuildingName")]
        [BsonRepresentation(BsonType.String)]
        public string BuildingName { set; get; }

        [BsonElement("LastUpdateTime")]
        [BsonRepresentation(BsonType.DateTime)]
        public DateTime LastUpdateTime { set; get; }

        public BuildingDocument(string buildingName)
        {
            this.BuildingName = buildingName;
            this.LastUpdateTime = DateTime.Now;
        }

    }


}
